import { post } from '@/utils/request'
export const categoryList = p => post(`/service-goods/b/goodscategory/v1/listByParentId`, p)
export const addCategory = p => post(`/service-goods/b/goodscategory/v1/add`, p)
export const editCategory = p => post(`/service-goods/b/goodscategory/v1/modify`, p)
export const delCategory = p => post(`/service-goods/b/goodscategory/v1/del/${p.id}`, p, 'get')
export const searchCategory = p => post(`/service-goods/b/goodscategory/v1/view/${p.id}`, p, 'get')
export const changeCategory = p => post(`/service-goods/b/goodscategory/v1/changeStatus/${p.id}/${p.publishStatus}`, p, 'get')
export const dragGoodCategory = p => post(`/service-goods/b/goodscategory/v1/modifyByDrag`, p)
